import Cookies from 'js-cookie'

const TokenKey = 'loginToken'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
// 登陆个人信息
export function getbaseInfo() {
  return Cookies.get('baseInfo')
}

export function setbaseInfo(info) {
  return Cookies.set('baseInfo', info)
}

export function removebaseInfo() {
  return Cookies.remove('baseInfo')
}

